import Vue from 'vue'
import VueRouter from 'vue-router'

//引入Home组件
import Home from '../views/Home/Home.vue'

Vue.use(VueRouter)

const routes = [
  //配置重定向到home
  {
    path: '/',
    redirect: '/home'
  },
    {
      path:'/home',
      name:'Home',
      component: Home
    }
]

const router = new VueRouter({
  routes
})

export default router
